﻿#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<math.h>

int main()
{
	int hour=0, minute=0, t=0;
	printf("请输入起始时间(小时:分钟)以冒号间隔:(注意时间在00:00~23:59之间)");
	scanf("%d%*c%d", &hour, &minute);


	printf("请输入经过分钟:\n");

	scanf("%d", &t);


	hour = hour + (minute + t) / 60;
	minute = (minute + t) % 60;
	printf("终止时间为%d:%d\n", hour, minute);
	return 0;
}